package ca.uwaterloo.mylongcall;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class ManageContactsActivity extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		//final SP spmanager = new SP();
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_managecontacts);
		final EditText nameet = (EditText) findViewById(R.id.name);
		final EditText phoneet = (EditText) findViewById(R.id.telenumber);
		Button addthiscontact = (Button) findViewById(R.id.addthiscontact);
		addthiscontact.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String name = nameet.getText().toString();
				String phone = phoneet.getText().toString();
				Contact newcontact = new Contact(name, phone);
				//spmanager.AddContact(newcontact);
				finish();
			}
		});

	}
}
